package com;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Test03 {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("HomeWork15\\dir\\目标文件1");
        FileReader fd = new FileReader("HomeWork15\\dir\\aa.txt");

        int len;
        while ((len = fd.read()) != -1) {
            fw.write(len);
        }
        fw.close();
        fd.close();
    }
}
